]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Hide the tooltip when an item is clicked
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 27 Aug 2020 08:52:14 +0000 (16:52 +0800)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 3 Sep 2020 15:25:19 +0000 (15:25 +0000)
So that when the 'Show Applications' button is clicked the icons don't
fly *through* the tooltip.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1423

js/ui/dash.js

index 16e797d18ffc0c3cca8003becb2fe9257ae60748..dbddd996f7222f8f16c13f8fad6ae53f75c15a31 100644 (file)
@@ -462,6 +462,11 @@ var Dash = GObject.registerClass({
             this._syncLabel(item, appIcon);
         });
 
+        item.child.connect('clicked', () => {
+            this._labelShowing = false;
+            item.hideLabel();
+        });
+
         let id = Main.overview.connect('hiding', () => {
             this._labelShowing = false;
             item.hideLabel();